package com._520it.crm.service;

import com._520it.crm.domain.OrderBill;
import com._520it.crm.page.PageResult;
import com._520it.crm.query.OrderBillQueryObject;
import com._520it.crm.query.QueryObject;

import java.util.List;

/**
 * Created by 呆 on 2017/10/3.
 */
public interface IOrderBillService {
    int deleteByPrimaryKey(Long id);

    Long insert(OrderBill orderBill);

    OrderBill selectByPrimaryKey(Long id);

    List<OrderBill> selectAll();

    int updateByPrimaryKey(OrderBill orderBill);

    PageResult query(QueryObject qo);

    PageResult approvalQueryPage(OrderBillQueryObject queryObject);

    void updateTimeandBaseInfo(OrderBill orderBill);

    /**
     * 表单提交申请批改的方法
     * @param orderId 表单id
     * @param remark 提交批改说明
     */
    void checkApply(Long orderId ,String remark);
}
